package com.yc.chatroom.server.service;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yc.chatroom.server.dao.ChatRoomMsgRepositoryDao;
import com.yc.chatroom.server.pojo.po.ChatRoomMsgPo;

@Service
public class ChatRoomMsgService {

	@Autowired
	private ChatRoomMsgRepositoryDao chatRoomMsgRepositoryDao;
	
	@Transactional
	public void insertChatRoomMsg() {
		ChatRoomMsgPo po = new ChatRoomMsgPo(null, 1, "abc", new Date().getTime());
		chatRoomMsgRepositoryDao.save(po);
	}
}
